<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="{$appConfigs[member_title]}">
    <title>合同列表-用户中心</title>
    {run $pageName = "order"}
    {include member.inc.csslink}
</head>
<body>
{include member.inc.header}
<main class="max-w">
    <div class="breadcrumb">您现在的位置：<a href="/member/order/index">交易管理</a> > 合同列表 </div>
    {include member.inc.leftNav}
    <div class="main">
        <section class="panel contract">
            <div class="header"><h1>合同列表</h1></div>
            <form class="form-inline" action="">
                <select name="select_mix_option" id="select-mix-option" data-value="{$search_arr[select_mix_option]}">
                    <option value="contract_no">合同号</option>
                    <option value="buyers">买家</option>
                    <option value="order_no">订单号</option>
                </select>
                <input type="text" placeholder="关键字"  name="select_mix_option_value" value="{$search_arr[select_mix_option_value]}"/>
                <label>签订时间</label>
                <input id="startTime" name="start_time" type="text" value="{$search_arr[start_time]}" class="Wdate" onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'endTime\')}',onpicked:function(){$dp.$('endTime').focus();}})"/>&nbsp;
                至&nbsp;&nbsp; <input id="endTime" name="end_time" type="text" value="{$search_arr[end_time]}" class="Wdate" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'startTime\')}'})"/>
                <select name="order_way" class="setSelect" data-value="{$search_arr[order_way]}">
                    <option value="all">-类型-</option>
                    <option value="0">线上</option>
                    <option value="1">线下</option>
                </select>
                <select name="status" class="setSelect" data-value="{$search_arr[status]}">
                    <option value="all">-状态-</option>
                    <option value="1">已成交</option>
                    <option value="0">未成交</option>
                </select>
                <input class="btn-primary btn-sm" type="submit" value="查询"/>
            </form>
            <div class="list_wrap">
                {include member.contract.contract_index_page}
            </div>
        </section>
    </div>
</main>
<script type="text/html" id="lookTemp">
    <section class="contract-info panel">
        <div class="header2"><h2>合同号：{%contract_no%}</h2></div>
        <ul class="description clearfix {%if pay_way ==1%}offline{%else%}online{%/if%} step{%progress%}">
            <li class="step1">
                <img src="/res/mpe/img/blank.gif"/>
                <span class="circle"></span>
                <dl>
                    <dt>合同生成</dt>
                </dl>
            </li>
            <li class="step2">
                <img src="/res/mpe/img/blank.gif"/>
                <span class="circle"></span>
                <dl>
                    <dt>买家付款</dt>
                </dl>
            </li>
            {%if pay_way==1%}
            <li class="step2-1">
                <img src="/res/mpe/img/blank.gif"/>
                <span class="circle"></span>
                <dl>
                    <dt>卖家确认收款</dt>
                </dl>
            </li>
            {%/if%}
            <li class="step3">
                <img src="/res/mpe/img/blank.gif"/>
                <span class="circle"></span>
                <dl>
                    <dt>卖家发货</dt>
                </dl>
            </li>
            <li class="step4">
                <img src="/res/mpe/img/blank.gif"/>
                <span class="circle"></span>
                <dl>
                    <dt>买家收货验货</dt>
                </dl>
            </li>
        </ul>
        <table class="tableLayer">
            <thead><tr>
                <td>卖家</td>
                <td>买家</td>
            </tr></thead>
            <tbody>
            <tr>
                <td>
                    <dl class="row">
                        <dt>公司名：</dt>
                        <dd>{%sellers%}&nbsp;</dd>
                        <dt>收款金额(元)：</dt>
                        <dd>{%received_amount%}</dd>
                        <dt>已发货数量({$pro_unit})：</dt>
                        <dd>{%delivery_quantity%}</dd>
                    </dl>
                </td>
                <td>
                    <dl class="row">
                        <dt>公司名：</dt>
                        <dd>{%buyers%}&nbsp;</dd>
                        <dt>付款金额(元)：</dt>
                        <dd>{%payment_amount%}</dd>
                        <dt>已收货数量({$pro_unit})：</dt>
                        <dd>{%received_quantity%}</dd>
                    </dl>
                </td>
            </tr>
            </tbody>
        </table>
    </section>
</script>

{include member.inc.footer}
{include member.inc.script}
<script>
   seajs.use(['trade_contract',"my97"],function(trade){
       trade.init();
   })
</script>
{include member.inc.foot_hook}
</body>
</html>
